//
//  ConstApi.h
//  EducationOID
//
//  Created by slz on 2017/5/19.
//  Copyright © 2017年 bnsr. All rights reserved.
//

#ifndef ConstApi_h
#define ConstApi_h

#define kAPI_IMAGE_HOST(API)   [NSString stringWithFormat:@"http://192.168.10.253:8090/edu_yun%@",API]
//#define kAPI_IMAGE_HOST(API)   [NSString stringWithFormat:@"http://123.56.143.131/edu_yun%@",API]

//http://123.56.143.131/edu_yun/
//http://192.168.10.253:8090
#ifdef DEBUG
#define kAPI_HOST(API)   [NSString stringWithFormat:@"http://192.168.10.253:8090%@",API]
//#define kAPI_HOST(API)   [NSString stringWithFormat:@"http://123.56.143.131%@",API]
#else
#define kAPI_HOST(API)   [NSString stringWithFormat:@"http://192.168.10.253:8090%@",API]
//#define kAPI_HOST(API)   [NSString stringWithFormat:@"http://123.56.143.131%@",API]
#endif


#define kAPI_HOME_COURSE kAPI_HOST(@"/edu_yun/course/to_course_center_m.action")
#define kAPI_MORE_COURSE kAPI_HOST(@"/edu_yun/course/to_classify_m.action")

//课程详情三个接口
#define kAPI_COURSE_DETAIL kAPI_HOST(@"/edu_yun/course/to_course_m.action")
#define kAPI_COURSE_DETAIL_CYCLE kAPI_HOST(@"/edu_yun/course/to_course_hour_m.action")
#define kAPI_COURSE_DETAIL_COMMENT kAPI_HOST(@"/edu_yun/course/to_course_apprise_m.action")

//报名页接口
//http://192.168.10.253:8090/edu_yun/user_appraise/ to_user_study_m.action
//http://192.168.10.253:8090/edu_yun/user_appraise/ join_study_m.action
//http://192.168.10.253:8090/edu_yun/course/to_class_m.action
#define kAPI_COURSE_DETAIL_SIGNUP kAPI_HOST(@"/edu_yun/course/join_study_m.action")
#define kAPI_COURSE_DETAIL_SIGNUP_GETINFO kAPI_HOST(@"/edu_yun/course/to_user_study_m.action")
#define kAPI_COURSE_DETAIL_CLASS_LIST kAPI_HOST(@"/edu_yun/course/to_class_m.action")

//课程详情页面
#define kAPI_COURSE_STUDY_TALKING_LIST kAPI_HOST(@"/edu_yun/course/to_question_m.action")
///edu_yun/course/note_m.action?user_id=28&status=1&course_id=244
#define kAPI_COURSE_NOTE kAPI_HOST(@"/edu_yun/course/note_m.action")
//笔记点赞 http://192.168.10.253:8090/edu_yun/course_note/agree_m.action?user_id=28&note_id=49

#define kAPI_COURSE_NOTE_LIKE_ACTION kAPI_HOST(@"/edu_yun/course_note/agree_m.action")

//添加问答 http://192.168.10.253:8090/edu_yun/topic_question/put_question_m.action?title=title&question_content=question_content&source_id=244&source_type=0&class_id=471&user_id=28
#define kAPI_COURSE_ADD_TALKING kAPI_HOST(@"/edu_yun/topic_question/put_question_m.action")
//http://192.168.10.253:8090/edu_yun/course/hour_list_m.action?user_id=28&course_id=244&class_id=471 获取发布笔记时的课时列表
#define kAPI_COURSE_CLASS_HOUR_LIST kAPI_HOST(@"/edu_yun/course/hour_list_m.action")


//添加笔记
//http://192.168.10.253:8090/edu_yun/course_note/get_note_m.action?user_id=28&course_id=244&course_hour_id=847&is_share=1&note_content=1234567qqertt
#define kAPI_COURSE_ADD_NOTE kAPI_HOST(@"/edu_yun/course_note/get_note_m.action")
//添加评论/edu_yun/user_appraise/appraise_m.action
#define kAPI_COURSE_COMMETN_ADD kAPI_HOST(@"/edu_yun/user_appraise/appraise_m.action")

//学习页面 http://192.168.10.253:8090/edu_yun/course/user_study_m.action?user_id=28
#define kAPI_STUDY_PAGE kAPI_HOST(@"/edu_yun/course/user_study_m.action")
//考试 作业  http://192.168.10.253:8090/edu_yun/course/my_exam_m.action?user_id=28&type=1
#define kAPI_STUDY_HOMEWORK_EXMA kAPI_HOST(@"/edu_yun/course/my_exam_m.action")
//笔记 http://192.168.10.253:8090/edu_yun/course/my_note_m.action?user_id=161
#define kAPI_STUDY_USER_NOTE kAPI_HOST(@"/edu_yun/course/my_note_m.action")
//话题 http://192.168.10.253:8090/edu_yun/course/my_topic_m.action?user_id=161
#define kAPI_STUDY_USER_TOPIC kAPI_HOST(@"/edu_yun/course/my_topic_m.action")


//个人 http://192.168.10.253:8090/edu_yun/course/user_m.action?user_id=161
#define kAPI_USER_INFO kAPI_HOST(@"/edu_yun/course/user_m.action")
//通知 http://192.168.10.253:8090/edu_yun/course/notice_m.action?user_id=28
#define kAPI_USER_MESSAGE kAPI_HOST(@"/edu_yun/course/notice_m.action")
// 收藏 http://192.168.10.253:8090/edu_yun/course/collect_m.action?user_id=28
#define kAPI_USER_COLLECT kAPI_HOST(@"/edu_yun/course/collect_m.action")
//注册 http://192.168.10.253:8090/edu_yun/user/frontRegister_m.action?phone=13345678944&username=asd&password=123
#define kAPI_REGISTER_USER kAPI_HOST(@"/edu_yun/user/frontRegister_m.action")
//搜索http://192.168.10.253:8090/edu_yun/course/search_m.action?str=李栋
#define kAPI_SEARCH kAPI_HOST(@"/edu_yun/course/search_m.action")
//验证码 http://192.168.10.253:8090/edu_yun/user/getPhoneYzm1.action?phone=18813045649
#define kAPI_APP_MESSAGE_VALIDE kAPI_HOST(@"/edu_yun/user/getPhoneYzm1.action")
//手机登录 http://192.168.10.253:8090/edu_yun/user/loginPhoneYzm.action?phone=18813045649&yzm=229330
#define kAPI_APP_PHONE_LOGIN kAPI_HOST(@"/edu_yun/user/loginPhoneYzm.action")
//普通登录 /edu_yun/user/loginPhone.action
#define kAPI_LOGIN_NOMAL kAPI_HOST(@"/edu_yun/user/loginPhone.action")
//忘记密码
#define kAPI_REST_PASSWORD kAPI_HOST(@"/edu_yun/user/reset_password_m.action")
//修改信息/edu_yun/course/update_user_m.action?id=28&sex=1&birthday=19911111
#define kAPI_REST_USER_INFO kAPI_HOST(@"/edu_yun/course/update_user_m.action")


#endif /* ConstApi_h  change_userpwd*/


